package eerbaar.v2.app.menuMain;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import eerbaar.v2.app.menu.IMenuItem;

public class MenuAdaptor implements ActionListener {

    private final IMenuItem item;

    public MenuAdaptor(IMenuItem item) {
        this.item = item;
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        this.item.execute();
    }

}
